package com.isoft.controller;

import com.isoft.common.Result;
import com.isoft.entity.Device;
import com.isoft.entity.Reflect;
import com.isoft.service.ReflectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ReflectController {
    @Autowired
    private ReflectService reflectService;

    @PostMapping("/Reflect")
    public Result<?> reflect(@RequestBody Reflect reflect) {
        reflectService.userReflect(reflect);
         return Result.success();
    }
}
